package com.ffapp.demo.bean;


import java.util.ArrayList;
import java.util.List;

public class ProofBaseData extends BasisBean {

    private String id;
    private String createBy;
    private String createUserName;
    private String createTime;
    private String updateBy;
    private String updateUserName;
    private String updateTime;
    private String riskId;
    private String riskName;
    private String riskLevel;       //0-无隐患  1-一般隐患 2-重大隐患
    private String checkStatus;
    private String checkDetail;
    private String dataOrder;
    private String remark;
    private String qrCodePath;

    public void setId(String id) {
        this.id = id;
    }
    public String getId() {
        return id;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }
    public String getCreateBy() {
        return createBy;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }
    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public String getCreateTime() {
        return createTime;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }
    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
    public String getUpdateTime() {
        return updateTime;
    }

    public void setRiskId(String riskId) {
        this.riskId = riskId;
    }
    public String getRiskId() {
        return riskId;
    }

    public void setRiskName(String riskName) {
        this.riskName = riskName;
    }
    public String getRiskName() {
        return riskName;
    }

    public void setRiskLevel(String riskLevel) {
        this.riskLevel = riskLevel;
    }
    public String getRiskLevel() {
        return riskLevel;
    }
    public String getRiskLevelName() {
        if(riskLevel == null){
            return "";
        }
        //0-无隐患  1-一般隐患 2-重大隐患
        switch (riskLevel){
            case "0":
                return "无隐患";
            case "1":
                return "一般隐患";
            case "2":
                return "重大隐患";
        }
        return riskLevel;
    }


    public void setCheckStatus(String checkStatus) {
        this.checkStatus = checkStatus;
    }
    public String getCheckStatus() {
        return checkStatus;
    }

    public void setCheckDetail(String checkDetail) {
        this.checkDetail = checkDetail;
    }
    public String getCheckDetail() {
        return checkDetail;
    }

    public void setDataOrder(String dataOrder) {
        this.dataOrder = dataOrder;
    }
    public String getDataOrder() {
        return dataOrder;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getRemark() {
        return remark;
    }


    private String unitId;
    private String newest;
    private String checkType;
    private String fireSupervisor;
    private String buildingId;
    private String deleted;
    private String checkTime;
    private String auditStatus;
    private String qrcordPath;
    private String unitName;
    private String title;

    public String getQrCodePath() {
        return qrCodePath;
    }

    public void setQrCodePath(String qrCodePath) {
        this.qrCodePath = qrCodePath;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getNewest() {
        return newest;
    }

    public void setNewest(String newest) {
        this.newest = newest;
    }

    public String getCheckType() {
        return checkType;
    }

    public void setCheckType(String checkType) {
        this.checkType = checkType;
    }

    public String getFireSupervisor() {
        return fireSupervisor;
    }

    public void setFireSupervisor(String fireSupervisor) {
        this.fireSupervisor = fireSupervisor;
    }

    public String getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(String buildingId) {
        this.buildingId = buildingId;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }

    public String getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(String checkTime) {
        this.checkTime = checkTime;
    }

    public String getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(String auditStatus) {
        this.auditStatus = auditStatus;
    }

    public String getQrcordPath() {
        return qrcordPath;
    }

    public void setQrcordPath(String qrcordPath) {
        this.qrcordPath = qrcordPath;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }



    private String deptName;
    private String addLocal;
    private String latitude;
    private String type;
    private String managerName;
    private String areaName;
    private String managerPhone;
    private String longitude;
    private String address;
    private String deptId;
    private String auditMessage;
    private String dutyName;
    private String dutyPhone;
    private int radiantRadius;
    private int outState;
    private String name;
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
    public String getDeptName() {
        return deptName;
    }

    public void setAddLocal(String addLocal) {
        this.addLocal = addLocal;
    }
    public String getAddLocal() {
        return addLocal;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }
    public String getLatitude() {
        return latitude;
    }

    public void setType(String type) {
        this.type = type;
    }
    public String getType() {
        return type;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }
    public String getManagerName() {
        return managerName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }
    public String getAreaName() {
        return areaName;
    }

    public void setManagerPhone(String managerPhone) {
        this.managerPhone = managerPhone;
    }
    public String getManagerPhone() {
        return managerPhone;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }
    public String getLongitude() {
        return longitude;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public String getAddress() {
        return address;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }
    public String getDeptId() {
        return deptId;
    }

    public void setAuditMessage(String auditMessage) {
        this.auditMessage = auditMessage;
    }
    public String getAuditMessage() {
        return auditMessage;
    }

    public void setDutyName(String dutyName) {
        this.dutyName = dutyName;
    }
    public String getDutyName() {
        return dutyName;
    }

    public void setDutyPhone(String dutyPhone) {
        this.dutyPhone = dutyPhone;
    }
    public String getDutyPhone() {
        return dutyPhone;
    }

    public void setRadiantRadius(int radiantRadius) {
        this.radiantRadius = radiantRadius;
    }
    public int getRadiantRadius() {
        return radiantRadius;
    }

    public void setOutState(int outState) {
        this.outState = outState;
    }
    public int getOutState() {
        return outState;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }



    private String downArea;
    private int upLayerCount;
    private String height;
    private String settlementUnitCount;
    private String rightsUnit;
    private String highRiseType;
    private String rightsInfo;
    private String downLayerCount;
    private String upArea;

    public String getDownArea() {
        return downArea;
    }

    public void setDownArea(String downArea) {
        this.downArea = downArea;
    }

    public int getUpLayerCount() {
        return upLayerCount;
    }

    public void setUpLayerCount(int upLayerCount) {
        this.upLayerCount = upLayerCount;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getSettlementUnitCount() {
        return settlementUnitCount;
    }

    public void setSettlementUnitCount(String settlementUnitCount) {
        this.settlementUnitCount = settlementUnitCount;
    }

    public String getRightsUnit() {
        return rightsUnit;
    }

    public void setRightsUnit(String rightsUnit) {
        this.rightsUnit = rightsUnit;
    }

    public String getHighRiseType() {
        return highRiseType;
    }

    public void setHighRiseType(String highRiseType) {
        this.highRiseType = highRiseType;
    }

    public String getRightsInfo() {
        return rightsInfo;
    }

    public void setRightsInfo(String rightsInfo) {
        this.rightsInfo = rightsInfo;
    }

    public String getDownLayerCount() {
        return downLayerCount;
    }

    public void setDownLayerCount(String downLayerCount) {
        this.downLayerCount = downLayerCount;
    }

    public String getUpArea() {
        return upArea;
    }

    public void setUpArea(String upArea) {
        this.upArea = upArea;
    }


    private List<ProofBaseData> detailList;

    public List<ProofBaseData> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<ProofBaseData> detailList) {
        this.detailList = detailList;
    }



    private int noTrouble;
    private int normalTrouble;
    private int bigTrouble;
    private List<ProofBaseData> details;
    private String buildId;
    private String buildName;
    private String buildAddress;
    private String buildHight;
    private String recordAttId;
    private String manageAttId;
    private String buildFireAttId;
    private String evacuatAttId;
    private String roomAttId;
    private String alarmSysAttId;
    private String supplyAttId;
    private String fireExtAttId;
    private String otherFacAttId;
    private String otherSafetyAttId;
    private List<ProofImgData> recordAtts;
    private List<ProofImgData> manageAtts;
    private List<ProofImgData> buildFireAtts;
    private List<ProofImgData> evacuatAtts;
    private List<ProofImgData> roomAtts;
    private List<ProofImgData> alarmSysAtts;
    private List<ProofImgData> supplyAtts;
    private List<ProofImgData> fireExtAtts;
    private List<ProofImgData> otherFacAtts;
    private List<ProofImgData> otherSafetyAtts;
    private List<String> allImgAtts;


    public int getNoTrouble() {
        return noTrouble;
    }

    public void setNoTrouble(int noTrouble) {
        this.noTrouble = noTrouble;
    }

    public int getNormalTrouble() {
        return normalTrouble;
    }

    public void setNormalTrouble(int normalTrouble) {
        this.normalTrouble = normalTrouble;
    }

    public int getBigTrouble() {
        return bigTrouble;
    }

    public void setBigTrouble(int bigTrouble) {
        this.bigTrouble = bigTrouble;
    }
    public List<ProofBaseData> getDetails() {
        return details;
    }

    public void setDetails(List<ProofBaseData> details) {
        this.details = details;
    }

    public String getBuildId() {
        return buildId;
    }

    public void setBuildId(String buildId) {
        this.buildId = buildId;
    }

    public String getBuildName() {
        return buildName;
    }

    public void setBuildName(String buildName) {
        this.buildName = buildName;
    }

    public String getBuildAddress() {
        return buildAddress;
    }

    public void setBuildAddress(String buildAddress) {
        this.buildAddress = buildAddress;
    }

    public String getBuildHight() {
        return buildHight;
    }

    public void setBuildHight(String buildHight) {
        this.buildHight = buildHight;
    }

    public String getRecordAttId() {
        return recordAttId;
    }

    public void setRecordAttId(String recordAttId) {
        this.recordAttId = recordAttId;
    }

    public String getManageAttId() {
        return manageAttId;
    }

    public void setManageAttId(String manageAttId) {
        this.manageAttId = manageAttId;
    }

    public String getBuildFireAttId() {
        return buildFireAttId;
    }

    public void setBuildFireAttId(String buildFireAttId) {
        this.buildFireAttId = buildFireAttId;
    }

    public String getEvacuatAttId() {
        return evacuatAttId;
    }

    public void setEvacuatAttId(String evacuatAttId) {
        this.evacuatAttId = evacuatAttId;
    }

    public String getRoomAttId() {
        return roomAttId;
    }

    public void setRoomAttId(String roomAttId) {
        this.roomAttId = roomAttId;
    }

    public String getAlarmSysAttId() {
        return alarmSysAttId;
    }

    public void setAlarmSysAttId(String alarmSysAttId) {
        this.alarmSysAttId = alarmSysAttId;
    }

    public String getSupplyAttId() {
        return supplyAttId;
    }

    public void setSupplyAttId(String supplyAttId) {
        this.supplyAttId = supplyAttId;
    }

    public String getFireExtAttId() {
        return fireExtAttId;
    }

    public void setFireExtAttId(String fireExtAttId) {
        this.fireExtAttId = fireExtAttId;
    }

    public String getOtherFacAttId() {
        return otherFacAttId;
    }

    public void setOtherFacAttId(String otherFacAttId) {
        this.otherFacAttId = otherFacAttId;
    }

    public String getOtherSafetyAttId() {
        return otherSafetyAttId;
    }

    public void setOtherSafetyAttId(String otherSafetyAttId) {
        this.otherSafetyAttId = otherSafetyAttId;
    }



    public List<ProofImgData> getRecordAtts() {
        return recordAtts;
    }

    public void setRecordAtts(List<ProofImgData> recordAtts) {
        this.recordAtts = recordAtts;
    }

    public List<ProofImgData> getManageAtts() {
        return manageAtts;
    }

    public void setManageAtts(List<ProofImgData> manageAtts) {
        this.manageAtts = manageAtts;
    }

    public List<ProofImgData> getBuildFireAtts() {
        return buildFireAtts;
    }

    public void setBuildFireAtts(List<ProofImgData> buildFireAtts) {
        this.buildFireAtts = buildFireAtts;
    }

    public List<ProofImgData> getEvacuatAtts() {
        return evacuatAtts;
    }

    public void setEvacuatAtts(List<ProofImgData> evacuatAtts) {
        this.evacuatAtts = evacuatAtts;
    }

    public List<ProofImgData> getRoomAtts() {
        return roomAtts;
    }

    public void setRoomAtts(List<ProofImgData> roomAtts) {
        this.roomAtts = roomAtts;
    }

    public List<ProofImgData> getAlarmSysAtts() {
        return alarmSysAtts;
    }

    public void setAlarmSysAtts(List<ProofImgData> alarmSysAtts) {
        this.alarmSysAtts = alarmSysAtts;
    }

    public List<ProofImgData> getSupplyAtts() {
        return supplyAtts;
    }

    public void setSupplyAtts(List<ProofImgData> supplyAtts) {
        this.supplyAtts = supplyAtts;
    }

    public List<ProofImgData> getFireExtAtts() {
        return fireExtAtts;
    }

    public void setFireExtAtts(List<ProofImgData> fireExtAtts) {
        this.fireExtAtts = fireExtAtts;
    }

    public List<ProofImgData> getOtherFacAtts() {
        return otherFacAtts;
    }

    public void setOtherFacAtts(List<ProofImgData> otherFacAtts) {
        this.otherFacAtts = otherFacAtts;
    }

    public List<ProofImgData> getOtherSafetyAtts() {
        return otherSafetyAtts;
    }

    public void setOtherSafetyAtts(List<ProofImgData> otherSafetyAtts) {
        this.otherSafetyAtts = otherSafetyAtts;
    }

    public List<String> getAllImgAtts() {
        if(allImgAtts == null) allImgAtts = new ArrayList<>();
        foreachListAndAdd(recordAtts);
        foreachListAndAdd(manageAtts);
        foreachListAndAdd(buildFireAtts);
        foreachListAndAdd(evacuatAtts);
        foreachListAndAdd(roomAtts);
        foreachListAndAdd(alarmSysAtts);
        foreachListAndAdd(supplyAtts);
        foreachListAndAdd(fireExtAtts);
        foreachListAndAdd(otherFacAtts);
        foreachListAndAdd(otherSafetyAtts);
        return allImgAtts;
    }

    private void foreachListAndAdd(List<ProofImgData> ImgAtts){
        if(allImgAtts == null) allImgAtts = new ArrayList<>();
        if(ImgAtts != null){
            for (ProofImgData imgData : ImgAtts){
                allImgAtts.add(imgData.getUrl());
            }
        }
    }


}
